package com.zhongbei.service.impl;

import com.zhongbei.mapper.RecordMapper;
import com.zhongbei.pojo.Record;
import com.zhongbei.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private RecordMapper recordMapper;


    @Override
    public int insertSelective(Record record) {
        return recordMapper.insertSelective(record);
    }

    @Override
    public int deleteByfeeId(Integer feeId) {
        return  recordMapper.deleteByfeeId(feeId);
    }

    @Override
    public int updateByfeeId(Record record) {
        return  recordMapper.updateByfeeId(record,record.getFeeId());
    }

    @Override
    public Record selectByfeeId(Integer feeId) {
        return  recordMapper.selectByfeeId(feeId);
    }
}
